#/usr/bin/python
# coding: utf8

import datetime


def logit(content):
    file = open('searchlog.txt', 'a')
    try:
        timestr = datetime.datetime.now().strftime('%y-%m-%d %H:%M:%S')+': '
        file.write(timestr+content+'\r\n')
    finally:
        file.close()
print 'heer'
logit('000sdfsdf')